package com.oocl.o2o.admin.service;

import java.util.List;

import com.oocl.o2o.admin.entity.Advertisement;
import com.oocl.o2o.admin.vo.AdvertisementVO;
import com.oocl.o2o.connectutil.dto.AdvertisementDTO;


public interface AdvertisementService {
	
	/**
	 * 
	 * @param advertisement
	 * @return
	 */
	public Advertisement add(Advertisement advertisement);
	/**
	 * 
	 * @param id
	 * @return
	 */
	public Advertisement delete(String id);
	/**
	 * 
	 * @param advertisement
	 * @return
	 */
	public Advertisement update(Advertisement advertisement);
	/**
	 * 
	 * @param approvalStatus
	 * @return
	 */
	public List<Advertisement> findByApprovalStatus(int approvalStatus);
	/**
	 * 
	 * @return
	 */
	public List<Advertisement> findAll();
	/**
	 * 
	 * @param id
	 * @return
	 */
	public List<Advertisement> findByMerchantId(String id);

	/**
	 * 
	 * @param advertisementDTO
	 * @return
	 */
	public Advertisement applyAdvertisement(AdvertisementDTO advertisementDTO);
	
	
	/**

	 * 

	 * @param id

	 * @return

	 */
	public Advertisement findAdvertisementById(String id);
	
	/**
	 * 
	 * @param id
	 * @return
	 */
	public AdvertisementVO findByIdForDetail(String id);

	/**
	 * 
	 * @param id
	 * @param type
	 * @return
	 */
	public String findByIdForShowImage(String id,String type);
	
	/**
	 * 
	 * @param id
	 * @param status
	 * @return
	 */
	public Advertisement updateStatusAndSend(AdvertisementVO advertisementVO);
	
}
